﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="LCL.IISManagers._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>本地站点列表</title>
    <style type='text/css'>
        /*table start*/
        table.default-table {
            -moz-border-radius: 5px;
            -webkit-border-radius: 5px;
            border-radius: 5px;
            width: 100%;
            border: solid #333;
            border-width: 1px 0px 0px 1px;
            font-size: 14px;
            border-collapse: collapse;
            border-spacing: 0;
        }

        table.default-table caption {
		    border: solid #333;
			border-width: 1px 1px 0px 1px;
			height: 27px;
			font-size: 18px;
            background-color: #d2d2d2;
        }

        table.default-table tbody tr {
            height: 20px;
            line-height: 20px;
            width: 100%;
        }

        table.default-table tbody tr.odd {
            background-color: #fff;
        }

        table.default-table tbody tr.even {
            background-color: #F5F5F5;
        }

        table.default-table tbody tr:hover {
            background-color: #eee;
        }

        table.default-table tbody tr th, table.default-table tbody tr td {
            padding: 3px 5px;
            text-align: left;
            border: 1px solid #ddd;
            border: solid #333;
            border-width: 0px 1px 1px 0px;
        }

        table.default-table tbody tr th {
            font-weight: bold;
            text-align: center;
        }

        table.default-table tbody tr td.tac {
            text-align: center;
        }

        table.default-table tbody tr td a:hover {
            color: #0080c0;
        }

        .TopClass {
            text-align: right;
            font-size: 12px;
        }

        /*table end*/
    </style>
</head>
<body>
    <div>
    <A name=TOP></A>
    <table id="attachtable" class="default-table">
        <caption >本地站点列表</caption>
        <tr>
            <th>编号</th>
            <th>状态</th>
            <th>站点名称</th>
            <th>站点路径</th>
             <th>站点类型</th>
            <th>应用程序池</th>
        </tr>
        <tbody >
         <%
            int num = 1;
            foreach (LCL.IISManagers.WebSiteModel item in List)
            {
        %>
          <tr class='odd'>
            <td ><%=num %>&nbsp;</td>
             <td><%=item.State%>&nbsp;</td>
            <td ><a href="<%=item.Url %>" target="_blank"><%=item.Title %></a>（<%=item.Port %>）&nbsp;</td>
            <td><%=item.Path%>&nbsp;</td>
             <td><%=item.Type%>&nbsp;</td>
             <td><%=item.AppPool%>&nbsp;</td>
        </tr>
        <%foreach (LCL.IISManagers.WebSiteModel child in item.Children)
          { %>
           <tr class='child'>
            <td>&nbsp;</td>
             <td><%=child.State%>&nbsp;</td>
            <td >&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=child.Url %>" target="_blank"><%=child.Title%></a>（<%=child.Port%>）&nbsp;</td>
            <td><%=child.Path%>&nbsp;</td>
             <td><%=child.Type%>&nbsp;</td>
             <td><%=child.AppPool%>&nbsp;</td>
        </tr>

        <%} %>
        <% 
                num++;
            }
        %>
      
        </tbody>
    </table>
     
   </div>
</body>
</html>
